<template>
  <div class="app-page w-100 h-100" :class="{ 'no-bg': $route.meta.noBg }">
    <Layout v-if="$route.meta.layout" />
    <router-view />
  </div>
</template>

<script setup>
import Layout from './components/Layout.vue';
</script>

<style lang="less" scoped>
.app-page {
  background-image: url('~@img/bg.jpg');
  background-size: 100% auto;
  &.no-bg {
    background: none;
  }
}
</style>
